package com.winhxd.b2c.message.sms.enums;

/**
 * 短信发送供应商枚举
 * */
public enum SmsSupplierTypeEnum {



    /**
     * 百悟
     * */
    BW("1", "bw", "百悟"),

    /**
     * 微网通
     * */
    WWT("2", "wwt", "微网通"),

    /**
     * 创蓝
     * */
    CL("3", "cl", "创蓝"),

    /**
     * 阅信
     * */
    YX("4", "yx", "阅信");



	private String type;

	private String code;

	private String name;

    SmsSupplierTypeEnum(String type, String code, String name) {
        this.type = type;
        this.code = code;
        this.name = name;
    }

    public static SmsSupplierTypeEnum getEnumByType(String type) {
        if (null != type) {
            for (SmsSupplierTypeEnum typeEnum : SmsSupplierTypeEnum.values()) {
                if (typeEnum.getType().equals(type)) {
                    return typeEnum;
                }
            }
        }
        return null;
    }



    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
